<?php /* Smarty version 2.6.20, created on 2017-04-23 15:11:05
         compiled from admin_question.htm */ ?>
<div class="path">
    <div>
    	<a href="main.php?cg_u_type=1">用户中心</a> <span>&gt;</span> 
    	答疑
    </div>
</div>
<div class="main">
	<div class="wrap">
    <div class="hd">
        <ul class="tabs">
            <li class="<?php if (! $_GET['type']): ?>active<?php else: ?>normal<?php endif; ?>"><a href="main.php?m=<?php echo $_GET['m']; ?>
&s=<?php echo $_GET['s']; ?>
">答疑</a></li>
            <li class="<?php if ($_GET['type'] == 'to_reply'): ?>active<?php else: ?>normal<?php endif; ?>"><a href="main.php?m=<?php echo $_GET['m']; ?>
&s=<?php echo $_GET['s']; ?>
&type=to_reply">未回复答疑</a></li>
            <li class="<?php if ($_GET['type'] == 'replied'): ?>active<?php else: ?>normal<?php endif; ?>"><a href="main.php?m=<?php echo $_GET['m']; ?>
&s=<?php echo $_GET['s']; ?>
&type=replied">已回复答疑</a></li>
        </ul>
    </div>
    <table class="table-list-style">
        <thead>
        <tr>
            <th>答疑/回复</th>
        </tr>
        </thead>
        <tbody>
        <?php $_from = $this->_tpl_vars['re']['list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['num'] => $this->_tpl_vars['slist']):
?>
        <tr>
            <td class="al"><a target="_blank" href="<?php echo $this->_tpl_vars['config']['weburl']; ?>
/?m=product&s=detail&id=<?php echo $this->_tpl_vars['slist']['product_id']; ?>
"><?php echo $this->_tpl_vars['slist']['product_name']; ?>
</a></td>
        </tr>
        <tr>    
            <td class="al">
            <p>咨询内容:<?php echo $this->_tpl_vars['slist']['question']; ?>
</p>
            <?php if ($this->_tpl_vars['slist']['answer']): ?><p>网站回复:<?php echo $this->_tpl_vars['slist']['answer']; ?>
</p><?php endif; ?>
            </td>
        </tr>
        <?php endforeach; else: ?>
        <tr>
            <td colspan="20" class="norecord">
                <i></i><span>暂无符合条件的数据记录</span>	
            </td>
        </tr>
        <?php endif; unset($_from); ?>
        </tbody>
        <tfoot>
        <tr>
            <td colspan="20"><div class="pagination"><?php echo $this->_tpl_vars['re']['page']; ?>
</div></td>
        </tr>
        </tfoot>
    </table>
</div>